
package com.joolun.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;

/**
 * 秒杀会场商品
 *
 * @author www.joolun.com
 * @date 2020-08-12 14:01:32
 */
@Data
@TableName("seckill_hall_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "秒杀会场商品")
public class SeckillHallInfo extends Model<SeckillHallInfo> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @ApiModelProperty(value = "PK")
    private String id;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @ApiModelProperty(value = "所属租户")
    private String tenantId;
    /**
     * 店铺Id
     */
    @NotNull(message = "店铺Id不能为空")
    @ApiModelProperty(value = "店铺Id")
    private String shopId;
    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @NotNull(message = "逻辑删除标记（0：显示；1：隐藏）不能为空")
    @ApiModelProperty(value = "逻辑删除标记（0：显示；1：隐藏）")
    private String delFlag;
    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
    @NotNull(message = "最后更新时间不能为空")
    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;
    /**
     * 创建者ID
     */
    @ApiModelProperty(value = "创建者ID")
    private String createId;
    /**
     * 排序字段
     */
    @NotNull(message = "排序字段不能为空")
    @ApiModelProperty(value = "排序字段")
    private Integer sort;
    /**
     * 会场Id
     */
    @NotNull(message = "会场Id不能为空")
    @ApiModelProperty(value = "会场Id")
    private String seckillHallId;
    /**
     * 秒杀商品Id
     */
    @NotNull(message = "秒杀商品Id不能为空")
    @ApiModelProperty(value = "秒杀商品Id")
    private String seckillInfoId;

}
